package cn.jaye.fabric.common.constant;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Jaye
 * @create 2017-12-21 17:50
 */
@Component
@Setter
@Getter
public class MicroConstant {

    @Value("${micro.session-times}")
    private Integer sessionTimes;

    @Value("${micro.guess-count-down-time}")
    private Integer guessCountDownTime;

    @Value("${micro.guess-right-result-point}")
    private Integer guessRightResultPoint;

    @Value("${micro.guess-right-score-point}")
    private Integer guessRightScorePoint;

    @Value("${micro.chain.api-address}")
    private String chainApiAddress;
    @Value("${micro.chain.if-login}")
    private String chainIfLogin;
    @Value("${micro.chain.if-register}")
    private String chainIfRegister;
    @Value("${micro.chain.if-invoke}")
    private String chainIfInvoke;
    @Value("${micro.chain.if-query}")
    private String chainIfQuery;
    @Value("${micro.chaincode.name}")
    private String chaincodeName;
    @Value("${micro.chaincode.version}")
    private String chaincodeVersion;
    @Value("${micro.chaincode.path}")
    private String chaincodePath;
    @Value("${micro.chaincode.location}")
    private String chaincodeLocation;
    @Value("${micro.channel.name}")
    private String channelName;
    @Value("${micro.chain.username}")
    private String chainUsername;
    @Value("${micro.chain.password}")
    private String chainPassword;
    @Value("${micro.chain.orgid}")
    private String chainOrgid;

    @Value("${micro.chain.sys-token-name}")
    private String chainSysTokenName;
    @Value("${micro.chain.sys-token-initUser}")
    private String chainSysTokenInitUser;

    @Value("${micro.chain.batch-time-out}")
    private int chainBatchTimeOut;
    @Value("${micro.guess-allow-day}")
    private int guessAllowDay;

    @Value("${micro.guess-part-in-point}")
    private Integer guessPartInPoint;

}
